package cn.iocoder.yudao.module.mqtt.controller.admin.devicereport.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - MQTT报表分类 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DeviceReportRespVO {

    @Schema(description = "报表ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13274")
    @ExcelProperty("报表ID")
    private Long id;

    @Schema(description = "设备ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22400")
    @ExcelProperty("设备ID")
    private Long deviceId;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("名称")
    private String reportName;

    @Schema(description = "数据类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "数据类型", converter = DictConvert.class)
    @DictFormat("mqtt_device_report_data_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String dataType;

    @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("数量")
    private String mqttNum;

    @Schema(description = "报表类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "报表类型", converter = DictConvert.class)
    @DictFormat("mqtt_device_report_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String reportType;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}